package com.sc.nft.service;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.sc.nft.entity.vo.AppPackageManageGetByNameVO;
import com.sc.nft.entity.vo.appPackageManage.AppPackManageAdminPageVO;

/**
 * (AppPackageManage)表服务接口
 *
 */
public interface AppPackageManageService {
    /**
     * 列表
     * @param name
     * @param pageNo
     * @param pageSize
     * @return
     */
    IPage<AppPackManageAdminPageVO> adminPage(String name, Integer pageNo, Integer pageSize);

    /**
     * 开启
     * @param id
     */
    void enable(Long id);

    /**
     * 关闭
     * @param id
     */
    void disable(Long id);

    /**
     * 前台根据渠道名称查询是否开启
     * @param sourcePackageName
     * @return
     */
    AppPackageManageGetByNameVO getByName(String sourcePackageName);
}
